package com.xian.cloud.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Configuration;

/**
 * fegin 调用设置head参数
 * @Author: xlr
 * @Date: Created in 下午8:56 2018/11/24
 */
@Configuration
public class FeignConfig implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("Token", "xianliru");
    }

}
